﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="dellist.aspx.cs" Inherits="appleader_projects_dellist" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>项目删除列表</title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div id="content">
        </div>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
            
            SelectCommand="SELECT project.projectid, project.projectname, project.starttime, project.endtime, users.realname, model.modelid, model.modelname, method.methodid, method.methodname FROM project INNER JOIN model ON project.modelid = model.modelid INNER JOIN method ON project.methodid = method.methodid INNER JOIN users ON project.creator = users.username WHERE (project.state = @state) AND (project.organizationid = @organizationid) ORDER BY project.createdtime DESC">
            <SelectParameters>
                <asp:Parameter DefaultValue="未评的" Name="state" Type="String" />
                <asp:SessionParameter DefaultValue="" Name="organizationid" 
                    SessionField="organizationid" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource1" 
            ForeColor="#333333" GridLines="None" PageSize="5" Width="100%">
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <Columns>
                <asp:BoundField DataField="projectname" HeaderText="项目名称" 
                    SortExpression="projectname" />
                <asp:BoundField DataField="realname" HeaderText="创建者" 
                    SortExpression="realname" />
                <asp:BoundField DataField="starttime" HeaderText="开始时间" 
                    SortExpression="starttime" />
                <asp:BoundField DataField="endtime" HeaderText="结束时间" 
                    SortExpression="endtime" />
                <asp:BoundField DataField="modelname" HeaderText="评估模型" 
                    SortExpression="modelname" />
                <asp:BoundField DataField="methodname" HeaderText="评估方法" 
                    SortExpression="methodname" />
                <asp:HyperLinkField DataNavigateUrlFields="projectid" 
                    DataNavigateUrlFormatString="dodelete.aspx?projectid={0}" HeaderText="删除" 
                    Text="&lt;img src='../../images/delete.gif' alt='删除' /&gt;" />
            </Columns>
            <PagerStyle BackColor="White" ForeColor="#003399" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#999999" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
    </div>
    </form>
</body>
</html>
